package com.example;
import com.example.Configuration.UserConfiguration;
import com.example.component.UserComponent;
import com.example.controller.UserController;
import com.example.controller.UserController2;
import com.example.controller.UserController3;
import com.example.model.User;
import com.example.repository.UserRepository;
import com.example.service.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
public class SpringIocDemoApplication {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(SpringIocDemoApplication.class, args);
        UserController3 userController = context.getBean(UserController3.class);
        userController.hello();
        /*
        * hi,UserController2...
          Hi, UserService
        */
    }
}